package com.topnav.mc.schedule.job;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.topnav.mc.admin.entity.Device;
import com.topnav.mc.admin.entity.bean.DeviceBean;
import com.topnav.mc.admin.entity.param.DeviceParam;
import com.topnav.mc.admin.service.IDeviceService;
import com.topnav.mc.involve.solve.SubscribePosition;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: kenny
 * @Date: 2023/9/25 16:10
 * 定时订况位置信息
 */
@Deprecated
@Component
@Slf4j
public class SubscribePositionJob  implements Job, Serializable {
    public String expires = "60";
    public String interval = "10";

    @Resource
    private SubscribePosition subscribePosition;


    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        subscribePosition.subscribe(expires,interval);
    }


}
